package com.catering.service;

import com.catering.pojo.DOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 徐
* @description 针对表【d_order】的数据库操作Service
* @createDate 2025-04-11 10:44:25
*/
public interface DOrderService extends IService<DOrder> {
    Integer insertOrder(DOrder order);
    DOrder selectByOrder(Integer uid,Integer id);
    void deleteByOrder(Integer id);
    DOrder selectByDateAndPhone(String orderDate,String phone);
    List<DOrder> selectByUid(Integer uid);
    DOrder selectByOrder1(Integer uid,  Integer id);

    // 新增：检查指定时间范围内是否有预约
    DOrder selectByTimeRange(Integer uid, String phone, String startTime, String endTime);
}
